package com.wuyan.locationdog.view

import android.content.Context
import android.view.Gravity
import android.view.View
import com.wuyan.locationdog.R
import com.wuyan.locationdog.databinding.PopLoadingBinding
import razerdp.basepopup.BasePopupWindow


class LoadingPopup(context: Context?, var sureCallback: ((String) -> Unit)? = null) : BasePopupWindow(context) {


    var mBinding: PopLoadingBinding? = null

    init {
        contentView = createPopupById(R.layout.pop_loading)
        popupGravity = Gravity.CENTER
        setBackPressEnable(false)
        setOutSideDismiss(false)
        isOutSideTouchable = false
    }

    override fun onViewCreated(contentView: View) {
        super.onViewCreated(contentView)
        mBinding = PopLoadingBinding.bind(contentView)

        mBinding?.apply {
//            progress.progress = 30
        }

    }


}
